home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / vg-2.03 / text.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-05-03  |  1.8 KB  |  91 lines

  1. /*
  2.  * Copyright (C) 1990 by Michael Davidson.
  3.  * All rights reserved.
  4.  *
  5.  * Permission to use, copy, modify, and distribute this software
  6.  * and its documentation for any purpose and without fee is hereby
  7.  * granted, provided that the above copyright notice appear in all
  8.  * copies and that both that copyright notice and this permission
  9.  * notice appear in supporting documentation.
  10.  *
  11.  * This software is provided "as is" without express or implied warranty.
  12.  */
  13.  
  14. #ifndef    TEXT_H
  15. #define    TEXT_H
  16.  
  17. /*
  18.  * text.h - defines for text mode stuff
  19.  */
  20.  
  21. /*
  22.  * PC graphics characters
  23.  */
  24. #ifdef    PC_GRAPHICS
  25.  
  26. #define TOP_LEFT_CORNER        0xda
  27. #define    TOP_RIGHT_CORNER    0xbf
  28. #define    BOT_LEFT_CORNER        0xc0
  29. #define    BOT_RIGHT_CORNER    0xd9
  30.  
  31. #define    HORIZONTAL_LINE        0xc4
  32. #define    VERTICAL_LINE        0xb3
  33.  
  34. #define    RIGHT_TEE        0xb4
  35. #define    LEFT_TEE        0xc3
  36. #define    TOP_TEE            0xc2
  37. #define    BOT_TEE            0xc1
  38.  
  39. #define    DBL_TOP_LEFT_CORNER    0xc9
  40. #define    DBL_TOP_RIGHT_CORNER    0xbb
  41. #define    DBL_BOT_LEFT_CORNER    0xc8
  42. #define    DBL_BOT_RIGHT_CORNER    0xbc
  43.  
  44. #define    DBL_HORIZONTAL_LINE    0xcd
  45. #define    DBL_VERTICAL_LINE    0xba
  46.  
  47. #define    DBL_RIGHT_TEE        0xb9
  48. #define    DBL_LEFT_TEE        0xcc
  49. #define    DBL_TOP_TEE        0xcb
  50. #define    DBL_BOT_TEE        0xca
  51.  
  52. #else
  53.  
  54. #define TOP_LEFT_CORNER        '+'
  55. #define    TOP_RIGHT_CORNER    '+'
  56. #define    BOT_LEFT_CORNER        '+'
  57. #define    BOT_RIGHT_CORNER    '+'
  58.  
  59. #define    HORIZONTAL_LINE        '-'
  60. #define    VERTICAL_LINE        '|'
  61.  
  62. #define    RIGHT_TEE        '+'
  63. #define    LEFT_TEE        '+'
  64. #define    TOP_TEE            '+'
  65. #define    BOT_TEE            '+'
  66.  
  67. #endif
  68.  
  69. /*
  70.  * PC text mode colors
  71.  */
  72.  
  73. #define    BLACK        0x0
  74. #define    BLUE        0x1
  75. #define    GREEN        0x2
  76. #define    CYAN        0x3
  77. #define    RED        0x4
  78. #define    MAGENTA        0x5
  79. #define    BROWN        0x6
  80. #define    WHITE        0x7
  81. #define    GRAY        0x8
  82. #define    LT_BLUE        0x9
  83. #define    LT_GREEN    0xA
  84. #define    LT_CYAN        0xB
  85. #define    LT_RED        0xC
  86. #define    LT_MAGENTA    0xD
  87. #define    YELLOW        0xE
  88. #define    HI_WHITE    0xF
  89.  
  90. #endif    /* TEXT_H */
  91.